import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//重置样式
import "./assets/css/reset.less";
//响应式插件
import "amfe-flexible";
//vant组件

// 挂载
import {
  Rate,
  NavBar,
  Icon,
  Search,
  Tab,
  Tabs,
  Tabbar,
  TabbarItem,
  Grid,
  GridItem,
  Lazyload,
  Swipe,
  SwipeItem,
  PullRefresh,
  image as VanImage,
  Switch,
  Divider,
  Form,
  Field,
  CellGroup,
  Button,
  Toast,
  Card,
  Dialog,
  List,
} from "vant";

const app = createApp(App);
app.use(List);
app.use(Rate);
app.use(Search);
app.use(NavBar);
app.use(Icon);
app.use(Tab);
app.use(Tabs);
app.use(Grid);
app.use(GridItem);
app.use(PullRefresh);
app.use(VanImage);
app.use(Tabbar);
app.use(Divider);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(TabbarItem);
app.use(Switch);
//轮播chat
app.use(Swipe);
app.use(SwipeItem);
//懒加载
app.use(Lazyload);
app.use(Button);
app.use(Toast);
app.use(Card);
app.use(Dialog);
app.use(store).use(router).mount("#app");
